package day09;

//通过匿名内部类方式创建线程
public class ThreadDemo03 {

	public static void main(String[] args) {

		Thread t1 = null;

		Runnable r1 = null;


		t1=new Thread(){
			public void run(){
				for(int i=0;i<1000;i++){
					System.out.println("你是谁？");
				}
			}
		};
		
		r1 = new Runnable() {
			public void run() {
				for (int i = 0; i < 1000; i++) {
					System.out.println("WOSHI");
				}
				
			}
		};
		
		Thread t2 = new Thread(r1);
		
		t1.start();
		t2.start();
		
		
		
		
	}

}


interface Aoo{
	
}